﻿/////////////////////////////////////////////////////////////////////////////////////////////
// <copyright file="UserInfo.cs" company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
/////////////////////////////////////////////////////////////////////////////////////////////

namespace Microsoft.LiveAtEdu.Samples.Powershell.OutlookLive
{
    using System;

    /// <summary>
    /// User Information Object
    /// </summary>
    public class UserInfo
    {
        /// <summary>
        /// Initializes a new instance of the UserInfo class.
        /// </summary>
        /// <param name="userPrincipalName">User principal name.</param>
        public UserInfo(string userPrincipalName)
        {
            if (userPrincipalName == null)
            {
                throw new ArgumentOutOfRangeException("userPrincipalName");
            }

            this.UserPrincipalName = userPrincipalName;
        }

        /// <summary>
        /// Gets User's principal name.
        /// </summary>
        public string UserPrincipalName { get; private set; }
    }
}
